package com.yzc.mihuyou.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yzc.mihuyou.entity.Slideshow;
import com.yzc.mihuyou.mapper.SlideshowMapper;
import com.yzc.mihuyou.vo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yzc
 * @since 2022-05-06
 */
@RestController
@RequestMapping("/mihuyou/slideshow")
public class SlideshowController {
    @Autowired
    SlideshowMapper slideshowMapper;


    @GetMapping("sueArr")
    public JsonResult sueArr(){
        Map<String,Object> map=new HashMap<>();
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("tre",0);
        map.put("lunbo",slideshowMapper.selectList(queryWrapper));
        return new JsonResult(200,"查询成功",map);
    }
}
